package com.cn.ccp.bean;

import com.cn.ccp.util.Contants;

/**
 * 学生已选课程bean
 * @author renyongcheng
 *
 */
public class SelectedCourse {
	private int id;
	private int courseId;
	private String courserName;//课程名称
	private int marks;//评价学生总数
	private String teacherName;//老师姓名
	private String starLevel;//课程星级
	private double finishRate;//完成比例；
	private String image;//课程图片路径
	private int status;//选课状态
	private String statusName ;
	private boolean hasMarked;//是否评价标志
	
	
	private int total_score ;
	private int score ;//课程分数
	
	private boolean showTest = false;//显示进行考试
	private boolean showMark = false; //显示评分
	private boolean showView = false ;//当考试结束,允许进行信息查看
	
	private int filePathId ;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getCourseId() {
		return courseId;
	}
	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}
	public String getCourserName() {
		return courserName;
	}
	public void setCourserName(String courserName) {
		this.courserName = courserName;
	}
	public int getMarks() {
		return marks;
	}
	public void setMarks(int marks) {
		this.marks = marks;
	}
	public String getTeacherName() {
		return teacherName;
	}
	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}
	public String getStarLevel() {
		if(starLevel.indexOf(".") >= 0 )
			return 	Contants.dFormat.format(Double.parseDouble(starLevel)).toString();
		else
			return starLevel;
	}
	public void setStarLevel(String starLevel) {
		this.starLevel = starLevel;
	}
	public double getFinishRate() {
		return finishRate;
	}
	public void setFinishRate(double finishRate) {
		this.finishRate = finishRate;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public boolean isHasMarked() {
		return hasMarked;
	}
	public void setHasMarked(boolean hasMarked) {
		this.hasMarked = hasMarked;
	}
	public boolean isShowTest() {
		return showTest;
	}
	public void setShowTest(boolean showTest) {
		this.showTest = showTest;
	}
	public boolean isShowMark() {
		return showMark;
	}
	public void setShowMark(boolean showMark) {
		this.showMark = showMark;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	public String getStatusName() {
		return statusName;
	}
	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}
	public int getTotal_score() {
		return total_score;
	}
	public void setTotal_score(int total_score) {
		this.total_score = total_score;
	}
	public boolean isShowView() {
		return showView;
	}
	public void setShowView(boolean showView) {
		this.showView = showView;
	}
	public int getFilePathId() {
		return filePathId;
	}
	public void setFilePathId(int filePathId) {
		this.filePathId = filePathId;
	}
}
